package com.iwhalecloud.bss.kite.cucc.service.attr.handler;

import com.iwhalecloud.bss.kite.common.constant.KeyConsts;
import com.iwhalecloud.bss.kite.manager.api.IQuerySceneInstService;
import com.iwhalecloud.bss.kite.manager.inst.KiteAttr;
import com.iwhalecloud.bss.kite.manager.inst.KiteInst;
import com.iwhalecloud.bss.kite.service.attr.data.CustAttrData;
import com.iwhalecloud.bss.kite.service.attr.handler.AbstractAttrHandler;
import org.springframework.beans.factory.annotation.Autowired;


/**
 * @author zhoujiao
 * @create 2022-02-16-11:38
 */
public class RentalNetworkElementsAttrHandler extends AbstractAttrHandler<KiteInst, CustAttrData> {
    @Autowired
    IQuerySceneInstService querySceneInstService;

    @Override
    public void after(KiteAttr attr, KiteInst inst, CustAttrData data) {
        // 网元出租评审单号在不可编辑状态下非必填(只考虑存量客户进行业务变更时)
        if("2826".equals(data.getServiceOfferId())){
            attr.setIsNull(KeyConsts.IFTRUE_T);
        }
        super.after(attr, inst, data);
    }
}

